/*************************************************************************
	> File Name: OutputStreamWriterTest01.java
	> Author: Potter
	> Mail: tobewhatwewant@gmail.com 
	> Created Time: 2014年06月01日 星期日 11时38分06秒
 ************************************************************************/
import java.io.OutputStreamWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.BufferedWriter;

class OutputStreamWriterTest01 {
    public static void main(String [] args) throws IOException {
        FileOutputStream fs = new FileOutputStream("yyy.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fs);
        
        BufferedWriter bw = new BufferedWriter(osw);
        
        bw.write("Hello world!");
        bw.close();
    }
}
